package com.letoken.platform.repo.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.app.po.VideoRedEnvelopesUserDevice;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.Set;

public interface VideoRedEnvelopesUserDevicesMapper extends BaseMapper<VideoRedEnvelopesUserDevice> {


    @Select("select userid from video_red_envelopes_user_devices where client_device_code = #{clientDeviceCode} and created_date = #{createdDate}")
    Set<Integer> selectUserIds(@Param("clientDeviceCode") String clientDeviceCode, @Param("createdDate") LocalDate createdDate);

}
